Skip to content

feat(pool): show lanes of other members that run on this machine - #167

Merged
7schmiede merged 3 commits into
mainfrom
feat/guest-lanes
Oct 21, 2026
Merged

7schmiede merged 3 commits into
mainfrom
feat/guest-lanes

Conversation

@7schmiede

@7schmiede 7schmiede commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

**Builds on #161** (desktop notifications); the base is feat/notifications, so this diff only shows what is new here. Once #161 is merged, GitHub retargets this PR to main.
## What A machine that runs the pool's lanes shows that someone else's code runs on it ("guest lanes": leases whose node is this machine and whose owner is someone else):
| Tile in the sidebar (only while there are guest lanes) | number of guest lanes, whose they are, what they reserved; a click opens the pool area |
| **Pool area → "On this machine"** | lane, repository, owner, (pool), state (running/starting), since when, what it reserved | | Desktop notification (ADR-0045) | new kind guest_lane, on by default: "anna's lane feat-cart runs on this machine"; a click opens the pool area |
## How
- The hub reads the pool's leases after each share report: every 15 s, per pool. It reads the member list (for names) only when a lease names this machine. The coordinator already lists every lease to every member. - /hub/events carries {"type":"guests","guests":[…]}.
- A pool's first reading is its baseline. A lease is told once, when it is running. A pool that cannot be reached keeps its last list. - devstack://open?page=pool opens the pool area (the click on a notification). The link and /auth?next= stay limited to dashboard routes.
## Not part of this (as agreed)
- Usage per guest lane: the node agent reports only a total. The section shows what the lanes *reserved*. - Ending a guest lane from the machine it runs on: that needs an amendment of ADR-0033.
## Tested
- Rust: - guests::of: only other members' leases on this machine; an owner without a name is shown by id.
-seen: the baseline is per pool; offered→runningis told once; an unreachable pool keeps its last list. - Target and devstack://open?page=pool.
- UI: the hub store follows guests; label, sum and signature helpers. - Mock mode in headless Edge: banner, sidebar tile, pool section.
- cargo fmt --check, clippy -D warnings, tests for the hub crate and tests/hub.rs, npm run typecheck, npm test.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Note: the share switch is removed in #169; the guest lanes therefore have their own sidebar tile (GuestTile.vue). If #169 is merged first, Sidebar.vue conflicts trivially (keep <GuestTile />, drop ShareSwitch).
`

7schmiede and others added 3 commits October 21, 2026 14:19
Whoever sits at a machine that runs the pool's lanes sees that someone
else's code runs on it. The hub reads the pool's leases after each share
report (every 15 s per pool); those whose node is this machine and whose
owner is someone else are its guest lanes. They go to the dashboard on
/hub/events (`guests`):

- a banner below the top bar on every page, with a link to the pool area;
  it can be hidden until a lane comes or goes,
- the share tile in the sidebar: how many, whose, what they reserved,
- "On this machine" in the pool area: lane, repository, owner, state,
  since when, what it reserved.

A guest lane that starts running notifies the desktop (ADR-0045, new kind
`guest_lane`, on by default); a click opens the pool area
(`devstack://open?page=pool`). What runs when the hub first reads a pool is
the baseline. Per-lane usage and ending a guest lane from the machine it
runs on are not part of this.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The share switch goes away (#169); the guest lanes get a tile of their
own, shown only while there are any.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede
7schmiede changed the base branch from feat/notifications to main October 21, 2026 12:20
@7schmiede
7schmiede merged commit c4761da into main Oct 21, 2026
@7schmiede
7schmiede deleted the feat/guest-lanes branch October 23, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant